home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Prog / U-Z / VCR+ / README.TXT < prev    next >
Encoding:
Text File  |  1993-03-22  |  2.6 KB  |  79 lines  |  [TEXT/PCXT]

  1. This ZIP archive holds three files
  2.       readme.txt
  3.       encode.c
  4.       decode.c
  5.  
  6.  
  7. decode.c is source program that reads a VCRPLUS code
  8. number value you find in the newspaper and calculates
  9.     date_of_the_tv_program
  10.     starting_time_of_the_tv_program
  11.     run_length_of_the_tv_program
  12.  
  13.  
  14. encode.c is source program that reads a date, start time,
  15. and run length then turns them into a VCRPLUS code number
  16. like the ones in the newspaper.
  17.  
  18.  
  19.  
  20. There are a few weak spots in these programs.
  21.  
  22.     1.  They only work for the usual kinds of tv shows,
  23.            a.  Must start on an even half-hour or hour
  24.            b.  Must end on an even half-hour or hour
  25.  
  26.     2.  They only handle VCRPLUS code values that are 1-6 digits
  27.            long (these are the ones that start and end on
  28.            half-hour or hour boundaries)
  29.  
  30.     3.  Both programs ask for today's date.  They should
  31.            instead get this from the computer itself but that is
  32.            too much involved with O/S details.
  33.  
  34.     4.  Integers are used everywhere, even for time_of_day.
  35.            a.  You need to use a 32-bit computer
  36.            b.  So, nine o clock at night, comes out 2100
  37.  
  38.     5.  The VCRPLUS hardware uses "channel mapping" for
  39.            channel numbers above 19, and for cable tv stations.
  40.            Just decode some VCRPLUS code numbers from each unusual
  41.            channel and get the "mapped channel" numbers.  For
  42.            example in this area the VCRPLUS people have
  43.            mapped cable station ESPN to "channel 22".
  44.  
  45.  
  46.  
  47.  
  48.  
  49. Example 1:  encode    nebraska  deleware  newyork
  50.                  This is a (deliberate) error.  You should
  51.                  get back a message telling how to do it right:
  52.             Usage: encode  month  day  year  channel  starting_time  length_in_minutes
  53.  
  54.  
  55.  
  56. Example 2:  decode    newyork  nebraska  deleware
  57.             Usage: decode  todays_month  todays_day  todays_year   Code_value_in_newspaper
  58.  
  59.  
  60.  
  61. Example 3:  encode 1 4 93 5 900 30
  62.                  You have asked for the VCRPLUS code of a tv show
  63.                  on January 4th of 1993, channel number 5, at 9 o clock
  64.                  (in the morning), that lasts for 30 minutes.
  65.                  The program answers back:
  66.                   1   4  93   5  900    30    VCRPLUS_CODE=    19297
  67.  
  68.  
  69. Example 4:  decode 1 2 93 19297
  70.                  On January 2nd of 1993 you have asked a question.  You
  71.                  want to know "what show does the VCRPLUS code 19297
  72.                  represent?"  The program answers back
  73.                  Code=  19297     1   4  93   Mapped_channel=  5  Start_time= 0900  Length=  30
  74.  
  75.  
  76.  
  77.  
  78.  
  79. Have some fun with this stuff.